package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsAdmin;
import com.qf.pojo.DtsRole;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * @version v1.0.0
 * @Description:
 * @author: 姜红凯
 * @date: 2022.02.18
 * @since 1.0
 */

public interface DtsRoleService {
    Set<String> findRolesByRoleIds(Integer[] roleIds);

    List<DtsRole> findAll();

    IPage<DtsRole> queryPage(Integer page, Integer limit, String sort, String order, String rolename);

    DtsRole insert(DtsRole role);

    boolean checkRole(String name);

    DtsRole update(DtsRole role);

    void deleteById(Integer id);

    boolean checkRelationRole(Integer id);

    boolean checkIsSuperManager(Integer roleId);

    void updatePermissions(Integer roleId, List<String> permissions);

}
